<?php
/**
 *    @version [ Masterton ]
 *    @package hwdVideoShare
 *    @copyright (C) 2007 - 2009 Highwood Design
 *    @license Creative Commons Attribution-Non-Commercial-No Derivative Works 3.0 Unported Licence
 *    @license http://creativecommons.org/licenses/by-nc-nd/3.0/
 */
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );

global $print_ulink, $print_glink, $mainframe, $smartyvs, $hwdvsTemplateOverride, $Itemid;
$c = hwd_vs_Config::get_instance();

$plugin =& JPluginHelper::getPlugin('hwdvs-template', 'summer_is_coming');
$pluginParams = new JParameter( $plugin->params );
$hwdvsTemplateOverride['thumbWidth1'] = $pluginParams->def( 'thumbWidth1', '120' );
$hwdvsTemplateOverride['thumbWidth2'] = $pluginParams->def( 'thumbWidth2', '80' );
$hwdvsTemplateOverride['thumbWidth3'] = $pluginParams->def( 'thumbWidth3', '80' );
$hwdvsTemplateOverride['thumbWidth4'] = $pluginParams->def( 'thumbWidth4', '80' );
$hwdvsTemplateOverride['thumbWidth5'] = $pluginParams->def( 'thumbWidth5', '120' );
$hwdvsTemplateOverride['thumbWidth6'] = $pluginParams->def( 'thumbWidth6', '120' );
$hwdvsTemplateOverride['thumbWidth7'] = $pluginParams->def( 'thumbWidth7', '50' );
$hwdvsTemplateOverride['thumbWidth8'] = $pluginParams->def( 'thumbWidth8', '50' );
$hwdvsTemplateOverride['thumbWidth9'] = $pluginParams->def( 'thumbWidth9', '50' );
$hwdvsTemplateOverride['vpr'] = $pluginParams->def( 'vpr', '2' );
$hwdvsTemplateOverride['cpr'] = $pluginParams->def( 'cpr', '3' );
$hwdvsTemplateOverride['gpr'] = $pluginParams->def( 'gpr', '2' );
$hwdvsTemplateOverride['hideSubcats'] = $pluginParams->def( 'hideSubcats', '0' );
$hwdvsTemplateOverride['loadCarousel'] = 0;

$template_folder = $mainframe->getUserState( "com_hwdvideoshare.template_folder", '' );
$template_element = $mainframe->getUserState( "com_hwdvideoshare.template_element", '' );
if (!empty($template_folder) && !empty($template_element)) {

	$c->hwdvids_template_path = $template_folder;
	$c->hwdvids_template_file = $template_element;

}
$mainframe->addCustomHeadTag('<script language="javascript" type="text/javascript" src="'.JURI::root( true ).'/plugins/hwdvs-template/'.$c->hwdvids_template_file.'/js/rounded.js"></script>');
$mainframe->addCustomHeadTag('<link rel="stylesheet" href="'.JURI::root( true ).'/plugins/hwdvs-template/'.$c->hwdvids_template_file.'/template.css" type="text/css" />');
$mainframe->addCustomHeadTag('<link rel="stylesheet" href="'.JURI::root( true ).'/plugins/hwdvs-template/'.$c->hwdvids_template_file.'/css/rating.css" type="text/css" />');

$smartyvs->assign("vpr", $hwdvsTemplateOverride['vpr']);
$smartyvs->assign("gpr", $hwdvsTemplateOverride['gpr']);
$smartyvs->assign("cpr", $hwdvsTemplateOverride['cpr']);

if ($hwdvsTemplateOverride['hideSubcats'] == "1") {
	$smartyvs->assign("hideSubcats", 1);
} else {
	$smartyvs->assign("hideSubcats", 0);
}

$psvboxwidth = intval(100/$hwdvsTemplateOverride['vpr'])-2;
$psgboxwidth = intval(100/$hwdvsTemplateOverride['gpr'])-2;
$pscboxwidth = intval(100/$hwdvsTemplateOverride['cpr'])-2;

$smartyvs->assign("uurl", JRoute::_("index.php?option=com_hwdvideoshare&Itemid=".$Itemid."&task=upload"));
$smartyvs->assign("searchinput_alt", "<input name=\"pattern\" id=\"menudo_search_field\" type=\"text\" onblur=\"if(this.value=='') this.value='"._HWDVIDS_SEARCHBAR."';\" onfocus=\"if(this.value=='"._HWDVIDS_SEARCHBAR."') this.value='';\" value=\""._HWDVIDS_SEARCHBAR."\" class=\"field\" autocomplete=\"off\" maxlength=\"50\" />");

$flvplay_width = $c->flvplay_width + 10;
$smartyvs->assign("flvplay_width", $flvplay_width+6);

$var = "<style type=\"text/css\">

		#hwdvids .hwdmodule-top {
			background-image: url('".JURI::root( true )."/plugins/hwdvs-template/".$c->hwdvids_template_file."/images/module_header-top.png');
		}

		#hwdvids .hwdmodule-h1 h2 {
			background-image: url('".JURI::root( true )."/plugins/hwdvs-template/".$c->hwdvids_template_file."/images/module_header-h1.png');
		}

		#hwdvids .hwdmodule-h2 h2 {
			background-image: url('".JURI::root( true )."/plugins/hwdvs-template/".$c->hwdvids_template_file."/images/module_header-h2.png');
		}

		#hwdvids .hwdmodule-h3 h2 {
			background-image: url('".JURI::root( true )."/plugins/hwdvs-template/".$c->hwdvids_template_file."/images/module_header-h3.png');
		}

		#hwdvids .hwdmodule-h4 h2 {
			background-image: url('".JURI::root( true )."/plugins/hwdvs-template/".$c->hwdvids_template_file."/images/module_header-h4.png');
		}

		#hwdvids .hwdmodule-h5 h2 {
			background-image: url('".JURI::root( true )."/plugins/hwdvs-template/".$c->hwdvids_template_file."/images/module_header-h5.png');
		}

		#hwdvids .videoBox {
			width: ".$psvboxwidth ."%;
			float:left;
		}
		#hwdvids .groupBox {
			width: ".$psgboxwidth ."%;
			float:left;
		}
		#hwdvids .categoryBox {
			width: ".$pscboxwidth ."%;
			float:left;
		}

		#hwdvids .box
		{
			background: transparent url('".JURI::root( true )."/images/blank.png') no-repeat top center!important;
		}












		#hwdvids .sic-center {
			width: ".$flvplay_width ."px;
		}



		#hwdvs_navcontainer ul li, #hwdvs_navcontainer ul {
			list-style-image: url('".JURI::root( true )."/images/blank.png')!important;
			background-image: url('".JURI::root( true )."/images/blank.png')!important;
		}




		#hwdvids .menudo_image {
			background:transparent url('".JURI::root( true )."/plugins/hwdvs-template/".$c->hwdvids_template_file."/images/search_bar.png') no-repeat scroll 0px 0px;
		}





</style>";
$mainframe->addCustomHeadTag($var);
return;

function templateSetCategoryTab($tab='videos')
{
}

?>